<template>
	<view class="">
		<view class="button" @click="tohtml">
			<slot></slot>
		</view>
	</view>
</template>

<script>
	export default {
		data () {
			return {
				
			}
		},
		methods: {
			tohtml() {
				this.$emit('toalert')
			}
		}
	}
</script>

<style lang="less">
	.button {
	
		width: 100%;
		height: 92upx;
		border-radius: 46upx;
		background-color: #8938d3;
		text-align: center;
		line-height: 92upx;
		color: #FFFFFF;
	}
</style>
